package com.zz.common.adapter

import com.zz.common.exception.TransactionException
import com.zz.dsp.idl.ErrorCode

trait EventAdapter[Input, Output] {
  def map(in:Input):Either[TransactionException,Output] =
    Left(new TransactionException(ErrorCode.UnsupportedOperation.value))
  def contraMap(out:Output):Either[TransactionException, Input] =
    Left(new TransactionException(ErrorCode.UnsupportedOperation.value))
}
